<?php

namespace app\Entity;

/**
 * MarginRecord
 */
class MarginRecord
{
    /**
     * @var int
     */
    private $id;

    /**
     * @var string
     */
    private $uuid;

    /**
     * @var int
     */
    private $userId;

    /**
     * @var int
     */
    private $recordId;

    /**
     * @var int
     */
    private $type;

    /**
     * @var string
     */
    private $typeToCn;

    /**
     * @var string
     */
    private $amount;

    /**
     * @var string
     */
    private $beforeAvaliableAmount;

    /**
     * @var string
     */
    private $afterAvaliableAmount;

    /**
     * @var string|null
     */
    private $remark;

    /**
     * @var int
     */
    private $status = '200';

    /**
     * @var \DateTime|null
     */
    private $updateTime;

    /**
     * @var \DateTime
     */
    private $createTime;

    /**
     * @var bool|null
     */
    private $isAffectedAmount;


    /**
     * Get id.
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set uuid.
     *
     * @param string $uuid
     *
     * @return MarginRecord
     */
    public function setUuid($uuid)
    {
        $this->uuid = $uuid;

        return $this;
    }

    /**
     * Get uuid.
     *
     * @return string
     */
    public function getUuid()
    {
        return $this->uuid;
    }

    /**
     * Set userId.
     *
     * @param int $userId
     *
     * @return MarginRecord
     */
    public function setUserId($userId)
    {
        $this->userId = $userId;

        return $this;
    }

    /**
     * Get userId.
     *
     * @return int
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * Set recordId.
     *
     * @param int $recordId
     *
     * @return MarginRecord
     */
    public function setRecordId($recordId)
    {
        $this->recordId = $recordId;

        return $this;
    }

    /**
     * Get recordId.
     *
     * @return int
     */
    public function getRecordId()
    {
        return $this->recordId;
    }

    /**
     * Set type.
     *
     * @param int $type
     *
     * @return MarginRecord
     */
    public function setType($type)
    {
        $this->type = $type;

        return $this;
    }

    /**
     * Get type.
     *
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Set typeToCn.
     *
     * @param string $typeToCn
     *
     * @return MarginRecord
     */
    public function setTypeToCn($typeToCn)
    {
        $this->typeToCn = $typeToCn;

        return $this;
    }

    /**
     * Get typeToCn.
     *
     * @return string
     */
    public function getTypeToCn()
    {
        return $this->typeToCn;
    }

    /**
     * Set amount.
     *
     * @param string $amount
     *
     * @return MarginRecord
     */
    public function setAmount($amount)
    {
        $this->amount = $amount;

        return $this;
    }

    /**
     * Get amount.
     *
     * @return string
     */
    public function getAmount()
    {
        return $this->amount;
    }

    /**
     * Set beforeAvaliableAmount.
     *
     * @param string $beforeAvaliableAmount
     *
     * @return MarginRecord
     */
    public function setBeforeAvaliableAmount($beforeAvaliableAmount)
    {
        $this->beforeAvaliableAmount = $beforeAvaliableAmount;

        return $this;
    }

    /**
     * Get beforeAvaliableAmount.
     *
     * @return string
     */
    public function getBeforeAvaliableAmount()
    {
        return $this->beforeAvaliableAmount;
    }

    /**
     * Set afterAvaliableAmount.
     *
     * @param string $afterAvaliableAmount
     *
     * @return MarginRecord
     */
    public function setAfterAvaliableAmount($afterAvaliableAmount)
    {
        $this->afterAvaliableAmount = $afterAvaliableAmount;

        return $this;
    }

    /**
     * Get afterAvaliableAmount.
     *
     * @return string
     */
    public function getAfterAvaliableAmount()
    {
        return $this->afterAvaliableAmount;
    }

    /**
     * Set remark.
     *
     * @param string|null $remark
     *
     * @return MarginRecord
     */
    public function setRemark($remark = null)
    {
        $this->remark = $remark;

        return $this;
    }

    /**
     * Get remark.
     *
     * @return string|null
     */
    public function getRemark()
    {
        return $this->remark;
    }

    /**
     * Set status.
     *
     * @param int $status
     *
     * @return MarginRecord
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status.
     *
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set updateTime.
     *
     * @param \DateTime|null $updateTime
     *
     * @return MarginRecord
     */
    public function setUpdateTime($updateTime = null)
    {
        $this->updateTime = $updateTime;

        return $this;
    }

    /**
     * Get updateTime.
     *
     * @return \DateTime|null
     */
    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    /**
     * Set createTime.
     *
     * @param \DateTime $createTime
     *
     * @return MarginRecord
     */
    public function setCreateTime($createTime)
    {
        $this->createTime = $createTime;

        return $this;
    }

    /**
     * Get createTime.
     *
     * @return \DateTime
     */
    public function getCreateTime()
    {
        return $this->createTime;
    }

    /**
     * Set isAffectedAmount.
     *
     * @param bool|null $isAffectedAmount
     *
     * @return MarginRecord
     */
    public function setIsAffectedAmount($isAffectedAmount = null)
    {
        $this->isAffectedAmount = $isAffectedAmount;

        return $this;
    }

    /**
     * Get isAffectedAmount.
     *
     * @return bool|null
     */
    public function getIsAffectedAmount()
    {
        return $this->isAffectedAmount;
    }
}
